<template>
  <div class="el-main">
    <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
      <el-tab-pane label="非定时收费" name="manual">
        <cost-table :type="selectType" />
      </el-tab-pane>
      <el-tab-pane label="定时收费" name="timing">
        <cost-table :type="selectType" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import costTable from "../../components/Pay/costTable";
export default {
  name: 'Setting',
  components: {
    costTable
  },
  data() {
    return {
      activeName: 'manual',
      selectType: 'manual'
    }
  },
  methods: {
    handleClick(tab, event) {
      this.selectType = tab.name
    }
  }
}
</script>

<style scoped>

</style>
